package com.css.zfzx.sjcj.modules.hddcGeologicalSvyPlanningPt.repository;

import com.css.zfzx.sjcj.modules.hddcGeologicalSvyPlanningPt.repository.entity.HddcGeologicalsvyplanningptEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author zyb
 * @date 2020-12-07
 */
public interface HddcGeologicalsvyplanningptRepository extends JpaRepository<HddcGeologicalsvyplanningptEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_Geologicalsvyplanningpt where project_name in :projectIds")
    List<HddcGeologicalsvyplanningptEntity> queryHddcGeologicalsvyplanningptsByProjectId(List<String> projectIds);
    @Query(nativeQuery = true, value = "select * from hddc_Geologicalsvyplanningpt where task_name in :projectIds")
    List<HddcGeologicalsvyplanningptEntity> queryHddcGeologicalsvyplanningptsByTaskId(List<String> projectIds);
}
